package com.wwe.kotlinstudy.dm.seven;

/**
 * @name KotlinStudy
 * @package name：com.wwe.kotlinstudy.dm.seven
 * @anthor DavidZhang
 * @time 2018/5/11 10:16
 * @class 媒婆
 */
public class Matchmaker implements familyStatus {

    private familyStatus familyStatus;

    public Matchmaker() {
        //默认无参构造是梁山伯的代理
        this.familyStatus = new liangShanBo();
    }

    public Matchmaker(familyStatus familyStatus) {
        //也可以是任何人的代理
        this.familyStatus = familyStatus;
    }


    @Override
    public void marriagePropose() {
        this.familyStatus.marriagePropose();
    }
}
